import { REACT_TEXT } from './constants'

export function wrapToVDom(element) {
  return typeof element === 'string' || typeof element === 'number'
    ? { type: REACT_TEXT, props: element }
    : element
}
